package com.study.mike.model.query;

import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author Kh
 */
@Data
public class UserQuery implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 姓名
     */
    private String name;

    /**
     * 邮箱
     */
    private String email;

    /**
     * 每页大小
     */
    @NotNull(message = "每页大小不能为空！")
    private Integer pageSize;

    /**
     * 当前页
     */
    @NotNull(message = "当前页不能为空！")
    private Integer pageCurrent;
}
